res1 {
  x = 42
}

res2 = (res1) {
  y = (() -> this.x).apply() + 1
}

res3 = (res2) {
  z = (() -> (() -> this.y).apply()).apply() + 1
}
